#include<stdio.h>
#include<string.h>
#include<stdlib.h>

int main(int argc,char* argv[])
{
    if(argc!=2)
    {
        printf("无法执行");
        exit(1);
    }
    
    printf("环境变量：MY_VAL:%s\n",getenv("MY_VAL"));

    if(!strcmp(argv[1],"-a"))
    {
        printf("execute : a\n");
    }
    else if(!strcmp(argv[1],"-b"))
    {
        printf("execute: b\n");
    }
    else 
    {
        printf("default\n");
    }

    return 0;
}
    
